package com.yunpeng.aidevice.push;

import com.yunpeng.aidevice.common.vo.SimpleEntityVO;
import com.yunpeng.aidevice.dao.model.record.MerchantNoticeMailDO;

import java.util.List;

/**
 * IPushService
 *
 * @author : Moore(hemw)
 * @date : 2020-04-20
 */
public interface IPushService {

    /**
     * 创建一封只包含文本的简单邮件
     *
     * @param sendConfig      发送账户信息
     * @param users           收件人集合
     * @param receiveMailHead 邮件标题
     * @param receiveMailMsg  邮件文本内容
     * @return
     * @throws Exception
     */
    void pushMimeMessage(MerchantNoticeMailDO sendConfig,
                         List<SimpleEntityVO> users,
                         String receiveMailHead,
                         String receiveMailMsg) throws Exception;
}
